<template>
	<!--
    	作者：1550495493@qq.com
    	时间：2019-07-24
    	描述：教学资源
    -->
	<div class="Announcements">
		<div class="search-box">
			<div class="fl">
				<!--<router-link to='/newResources'>-->
					<input @click="gotoUpdate(null)"  class="user-box user-name" type="button" value="新增资源" />
				<!--</router-link>-->
			</div>
			<div class="fr">
				<input name="search" class="search-boxs" type="text" autocomplete="off" v-model="search" placeholder="请输入课程名称"/>
				<input class="user-box user-name" type="button" value="检索" @click="searchTodo" />
			</div>
		</div>
		<div class="PressRelease-list">
			<table>
				<thead>
					<tr>
						<th class="w280">课程名称</th>
						<!--<th class="table-text-th2">上课教师</th>-->
						<th class="w280">课件链接</th>
						<th class="w80">资源附件</th>
						<th class="w170">操作</th>
					</tr>
				</thead>
				<tbody>
          <tr v-if="curriculumList.length == 0">
            <td colspan="4" class="center">暂无数据！</td>
          </tr>
          <tr v-for="curriculum in curriculumList">
						<td :title="curriculum.name"><span class="show-oneline-table">{{curriculum.name}}</span></td>
						<!--<td>张三</td>-->
						<td :title="curriculum.courseware"><span class="show-oneline-table">{{curriculum.courseware}}</span></td>
						<td><input type="button" value="下载" class="delete write" @click="downloadPack(curriculum.enclosure)"/></td>
						<td>
							<input @click="gotoUpdate(curriculum.uuid)" type="button" value="修改" class="delete write" />
							<input type="button" value="删除" class="delete write" @click="deleteData(curriculum.id,curriculum.useStatus)" />
						</td>
					</tr>
				</tbody>
			</table>
			<!--total  数据总数   size  一页多少条数据   page  当前页码    changge 返回当前选择的页码  改变一页显示条 child  返回值就是一页显示条数  -->
			<pageination :total="total" :size="size" :page="page" :changge="pageFn" @child="obtainChild"></pageination>
		</div>
	</div>

</template>
<script src="./TeachingResources.js"></script>

<style scoped>
	@import "TeachingResources.css"
</style>
